package com.aizhixin.lab.task.domain;


import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class TaskDomain {
    @ApiModelProperty(value = "任务id", required = false)
    private String id;
    @ApiModelProperty(value = "任务名称", required = false)
    private String taskName;
    @ApiModelProperty(value = "课程id", required = false)
    private String courseId;
    @ApiModelProperty(value = "课程名称", required = false)
    private String courseName;
    @ApiModelProperty(value = "课程章节Id", required = false)
    private String courseChapterId;
    @ApiModelProperty(value = "课程小节Id", required = false)
    private String courseMinutiaId;
    @ApiModelProperty(value = "课程模板id", required = false)
    private Long templateId;
    @ApiModelProperty(value = "是否需要考试倒计时", required = false)
    private Integer isCountDown;
    @ApiModelProperty(value = "倒计时时间(分钟)", required = false)
    private Integer countDown;
    @ApiModelProperty(value = "题目数量", required = false)
    private Integer questionsNum;
    @ApiModelProperty(value = "创建者", required = false)
    private String creatorName;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdDate;

}
